//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-01B
TN_Widget.CreateTable([['Bristol Ballet: A Midsummer Night's Dream','Paramount Center For The Performing Arts','Bristol, TN','Saturday','5/11/2024','12:00 PM','6149426','Bristol-Ballet--A-Midsummer-Night-s-Dream-5-11-2024'],['Bristol Ballet: A Midsummer Night's Dream','Paramount Center For The Performing Arts','Bristol, TN','Saturday','5/11/2024','5:30 PM','6149427','Bristol-Ballet--A-Midsummer-Night-s-Dream-5-11-2024'],['New York City Ballet: A Midsummer Night's Dream','David H. Koch Theater','New York, NY','Tuesday','5/28/2024','7:30 PM','5687782','New-York-City-Ballet--A-Midsummer-Night-s-Dream-5-28-2024'],['New York City Ballet: A Midsummer Night's Dream','David H. Koch Theater','New York, NY','Wednesday','5/29/2024','7:30 PM','5687783','New-York-City-Ballet--A-Midsummer-Night-s-Dream-5-29-2024'],['New York City Ballet: A Midsummer Night's Dream','David H. Koch Theater','New York, NY','Thursday','5/30/2024','7:30 PM','5687784','New-York-City-Ballet--A-Midsummer-Night-s-Dream-5-30-2024'],['Inebriated Shakespeare: A Midsummer Night's Dream','City Winery - Nashville','Nashville, TN','Friday','5/31/2024','7:30 PM','6376329','Inebriated-Shakespeare--A-Midsummer-Night-s-Dream-5-31-2024'],['New York City Ballet: A Midsummer Night's Dream','David H. Koch Theater','New York, NY','Friday','5/31/2024','8:00 PM','5687785','New-York-City-Ballet--A-Midsummer-Night-s-Dream-5-31-2024'],['New York City Ballet: A Midsummer Nights Dream','David H. Koch Theater','New York, NY','Saturday','6/1/2024','2:00 PM','5687676','New-York-City-Ballet--A-Midsummer-Nights-Dream-6-1-2024'],['New York City Ballet: A Midsummer Nights Dream','David H. Koch Theater','New York, NY','Saturday','6/1/2024','8:00 PM','5687677','New-York-City-Ballet--A-Midsummer-Nights-Dream-6-1-2024'],['New York City Ballet: A Midsummer Night's Dream','David H. Koch Theater','New York, NY','Sunday','6/2/2024','3:00 PM','5687786','New-York-City-Ballet--A-Midsummer-Night-s-Dream-6-2-2024'],['A Midsummer Night's Dream','Kelsey Theatre At Mercer','Princeton Junction, NJ','Friday','6/14/2024','8:00 PM','6133403','A-Midsummer-Night-s-Dream-6-14-2024'],['A Midsummer Night's Dream','Kelsey Theatre At Mercer','Princeton Junction, NJ','Saturday','6/15/2024','8:00 PM','6133404','A-Midsummer-Night-s-Dream-6-15-2024'],['A Midsummer Night's Dream','Kelsey Theatre At Mercer','Princeton Junction, NJ','Sunday','6/16/2024','2:00 PM','6133405','A-Midsummer-Night-s-Dream-6-16-2024'],['A Midsummer Night's Dream','Kelsey Theatre At Mercer','Princeton Junction, NJ','Friday','6/21/2024','8:00 PM','6133406','A-Midsummer-Night-s-Dream-6-21-2024'],['A Midsummer Night's Dream','Kelsey Theatre At Mercer','Princeton Junction, NJ','Saturday','6/22/2024','8:00 PM','6133407','A-Midsummer-Night-s-Dream-6-22-2024'],['A Midsummer Night's Dream','Kelsey Theatre At Mercer','Princeton Junction, NJ','Sunday','6/23/2024','2:00 PM','6133408','A-Midsummer-Night-s-Dream-6-23-2024'],['New York City Ballet: A Midsummer Night's Dream','David H. Koch Theater','New York, NY','Tuesday','5/27/2025','7:30 PM','6407481','New-York-City-Ballet--A-Midsummer-Night-s-Dream-5-27-2025'],['New York City Ballet: A Midsummer Night's Dream','David H. Koch Theater','New York, NY','Wednesday','5/28/2025','7:30 PM','6407482','New-York-City-Ballet--A-Midsummer-Night-s-Dream-5-28-2025'],['New York City Ballet: A Midsummer Night's Dream','David H. Koch Theater','New York, NY','Thursday','5/29/2025','7:30 PM','6407483','New-York-City-Ballet--A-Midsummer-Night-s-Dream-5-29-2025'],['New York City Ballet: A Midsummer Night's Dream','David H. Koch Theater','New York, NY','Friday','5/30/2025','7:30 PM','6407484','New-York-City-Ballet--A-Midsummer-Night-s-Dream-5-30-2025'],['New York City Ballet: A Midsummer Night's Dream','David H. Koch Theater','New York, NY','Saturday','5/31/2025','7:30 PM','6407485','New-York-City-Ballet--A-Midsummer-Night-s-Dream-5-31-2025'],['New York City Ballet: A Midsummer Night's Dream','David H. Koch Theater','New York, NY','Sunday','6/1/2025','3:00 PM','6407486','New-York-City-Ballet--A-Midsummer-Night-s-Dream-6-1-2025']],'A Midsummer Nights Dream','http://www.ticketnetwork.com/ticket/A-Midsummer-Nights-Dream-events.aspx');